<%--
  Created by IntelliJ IDEA.
  User: ddknight
  Date: 2019/11/28
  Time: 15:13
  To change this template use File | Settings | File Templates.
--%>
<%@page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8" language="java" %>
<%@ page import="cc.ddknight.site.iblog.service.VersionService" %>
<%@ page import="cc.ddknight.site.iblog.service.impl.VersionServiceImpl" %>
<%@ page import="cc.ddknight.site.iblog.domain.User" %>
<%
    VersionService versionService = new VersionServiceImpl();
    String currentVersion = versionService.getVersion();
%>
<html>
<head>
    <title>Ddknightの博客首页</title>
    <meta charset="utf-8">
    <meta name="description" content="Ddknightの博客首页">
    <meta name="author" content="ddknight<cc8443298@163.com>">
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link href="bootstrap/css/bootstrap.min.css" rel="stylesheet" media="screen">
    <link href="bootstrap/css/bootstrap-responsive.css" rel="stylesheet">
    <style type="text/css">
        body {
            padding-top: 60px;
            padding-bottom: 40px;
        }
        .sidebar-nav {
            padding: 9px 0;
        }
        @media (max-width: 980px) {
            /* Enable use of floated navbar text */
            .navbar-text.pull-right {
                float: none;
                padding-left: 5px;
                padding-right: 5px;
            }
        }
    </style>
</head>
<body>
<div class="navbar navbar-inverse navbar-fixed-top">
    <div class="navbar-inner">
        <div class="container-fluid">
            <button type="button" class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a class="brand" href="#">Ddknightの博客</a>
            <div class="nav-collapse collapse">
                <p class="navbar-text pull-right">
                    <%
                        if(session.getAttribute("isLogin") != null && (Boolean)session.getAttribute("isLogin")){
                            User user = (User)session.getAttribute("loginUser");
                    %>
                    <a href="#" class="navbar-link">欢迎用户,<%=user.getUsername() %></a>
                    <%
                        }else{
                    %>
                    <a href="./login.jsp" class="navbar-link">登录</a>
                    <%
                        }
                    %>
                </p>
                <ul class="nav">
                    <li class="active"><a href="#">首页</a></li>
                    <li><a href="#about">关于</a></li>
                    <li><a href="#contact">联系方式</a></li>
                </ul>
            </div><!--/.nav-collapse -->
        </div>
    </div>
</div>
<div class="container-fluid">
    <div class="row-fluid">
        <div class="span3">
            <div class="well sidebar-nav">
                <ul class="nav nav-list">
                    <li class="nav-header">Sidebar</li>
                    <li class="active"><a href="#">Link</a></li>
                    <li><a href="#">Link</a></li>
                    <li><a href="#">Link</a></li>
                    <li><a href="#">Link</a></li>
                    <li class="nav-header">Sidebar</li>
                    <li><a href="#">Link</a></li>
                    <li><a href="#">Link</a></li>
                    <li><a href="#">Link</a></li>
                    <li><a href="#">Link</a></li>
                    <li><a href="#">Link</a></li>
                    <li><a href="#">Link</a></li>
                    <li class="nav-header">Sidebar</li>
                    <li><a href="#">Link</a></li>
                    <li><a href="#">Link</a></li>
                    <li><a href="#">Link</a></li>
                </ul>
            </div><!--/.well -->
        </div><!--/span-->
        <div class="span9">
            <div class="hero-unit">
                <h1>Ddknightの博客</h1>
                <p>JSP页面构建的博客首页,非常简单.</p>
                <p><a href="#" class="btn btn-primary btn-large">Let's Explorer &raquo;</a></p>
            </div>
            <div class="row-fluid">
                <div class="span4">
                    <h2>第1篇博客</h2>
                    <p>作者很懒,什么都没有留下. </p>
                    <p><a class="btn" href="#">点击查看 &raquo;</a></p>
                </div><!--/span-->
                <div class="span4">
                    <h2>第2篇博客</h2>
                    <p>作者很懒,什么都没有留下. </p>
                    <p><a class="btn" href="#">点击查看 &raquo;</a></p>
                </div><!--/span-->
                <div class="span4">
                    <h2>第3篇博客</h2>
                    <p>作者很懒,什么都没有留下. </p>
                    <p><a class="btn" href="#">点击查看 &raquo;</a></p>
                </div><!--/span-->
            </div><!--/row-->
            <div class="row-fluid">
                <div class="span4">
                    <h2>第4篇博客</h2>
                    <p>作者很懒,什么都没有留下. </p>
                    <p><a class="btn" href="#">点击查看 &raquo;</a></p>
                </div><!--/span-->
                <div class="span4">
                    <h2>第5篇博客</h2>
                    <p>作者很懒,什么都没有留下. </p>
                    <p><a class="btn" href="#">点击查看 &raquo;</a></p>
                </div><!--/span-->
                <div class="span4">
                    <h2>第6篇博客</h2>
                    <p>作者很懒,什么都没有留下.</p>
                    <p><a class="btn" href="#">点击查看 &raquo;</a></p>
                </div><!--/span-->
            </div><!--/row-->
        </div><!--/span-->
    </div><!--/row-->

    <hr>

    <footer>
        <p>&copy; Company 2019</p>
    </footer>

</div><!--/.fluid-container-->

<!-- Le javascript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script src="bootstrap/js/jquery-1.9.1.min.js"></script>

</body>
</body>
</html>